package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.admin.mapper.IdxProductTypeMapper;
import com.indexingsystem.boss.admin.mapper.IdxSynonymMapper;
import com.indexingsystem.boss.entity.IdxProductType;
import com.indexingsystem.boss.entity.IdxProductTypeWithBLOBs;
import com.indexingsystem.system.service.IProductTypeService;

@Service
public class ProductTypeServiceImpl   implements IProductTypeService {
	@Resource
	private  IdxProductTypeMapper idxProductTypeMapper;

	@Override
	public int deleteByPrimaryKey(Integer categoryId) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.deleteByPrimaryKey( categoryId );
	}

	@Override
	public int insert(IdxProductTypeWithBLOBs record) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.insert( record );
	}

	@Override
	public int insertSelective(IdxProductTypeWithBLOBs record) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.insertSelective( record );
	}

	@Override
	public IdxProductTypeWithBLOBs selectByPrimaryKey(Integer categoryId) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.selectByPrimaryKey( categoryId );
	}

	@Override
	public int updateByPrimaryKeySelective(IdxProductTypeWithBLOBs record) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.updateByPrimaryKeySelective( record );
	}

	@Override
	public int updateByPrimaryKeyWithBLOBs(IdxProductTypeWithBLOBs record) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.updateByPrimaryKeyWithBLOBs( record );
	}

	@Override
	public int updateByPrimaryKey(IdxProductType record) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.updateByPrimaryKey( record );
	}

	@Override
	public List<IdxProductTypeWithBLOBs> selectByParentId(String parentId) {
		// TODO Auto-generated method stub
		return idxProductTypeMapper.selectByParentId( parentId );
	}
	
}
